<style>.input-border>input{border:1px solid #32c787;border-radius:5px;text-align:center;}</style>
<div class="modal fade" id="coupon-add" data-keyboard="false" data-backdrop="static" tabindex="-1">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title pull-left" id="coupon-add-modal-title">优惠券</h3>
            </div>
            <div class="modal-body">
                <form id="coupon-add-form">
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <span class="input-group-addon">
					               	优惠方式
					            </span>
                            </div>
                        </div>
                    </div>
                     <div class="row">
                        <div class="col-sm-6">
                            <div class="input-group container">
					            <div class="form-group">
						            <label for='r1'>
						            <input id='r1' checked="checked" type="radio" value="2" name="mode"/>
						            	满减
						            </label>
						            <label style='margin-left:20px;' for='r2'>
						            <input id='r2' type="radio" value="1" name="mode"/>
						            	直减
						            </label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="input-group container">
					            <div class="form-group" id="style">
						            <span class="input-border">
						            	满&nbsp;&nbsp;&nbsp;<input type="text" id='f1' name="firstNumber" onkeyup="value=value.replace(/[^\d\.]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d\.]/g,''))"/>
						            	&nbsp;&nbsp;&nbsp;减&nbsp;&nbsp;&nbsp;<input type="text" name="secondNumber" maxlength="3"  onkeyup="check(this,this.value),checkNum(this,this.value)" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d\.]/g,''))"/>
						            </span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-3">
                            <div class="input-group">
                                <span class="input-group-addon">
					               	有效期
					            </span>
                            </div>
                        </div>
                    </div>
                     <div class="row">
                        <div class="col-sm-6">
                            <div class="input-group container">
					            <div class="form-group">
						            <label for='v1'><input id='v1' checked="checked" type="radio" value="1" name="validType"/>固定周期</label>
                                	<label for='v2' style="margin-left:20px;"><input id="v2" type="radio" value="2" name="validType"/>固定时长</label>
                                </div>
                            </div>
                        </div>
                    </div>
                   <div class="row">
                        <div class="col-sm-12">
                            <div class="input-group container">
					            <div class="form-group" id="cycle">
						            <span class="input-border">
						            	<!-- 优惠有效期由&nbsp;&nbsp;&nbsp;<input type="date" name="validStart"/> &nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp; <input type="date" name="validEnd"/>&nbsp;&nbsp;&nbsp;内有效 -->
						            	优惠有效期由&nbsp;&nbsp;&nbsp;<input placeholder="请输入日期" name="validStart" class="layDate1">
						            	&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;<input placeholder="请输入日期" name="validEnd" class="layDate1">&nbsp;&nbsp;&nbsp;内有效 
						            </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-save" id="coupon-add-button" name="save">保存</button>
                <button type="button" class="btn btn-secondary btn-close">关闭</button>
                <button class="btn-hide"></button>
            </div>
        </div>
    </div>
</div>

<script>
/* laydate.render({
	 elem: '#startDate'//指定元素
	,type: 'datetime'
    ,range: '至'
    ,format: 'yyyy年M月d日'
 
}); */
//同时绑定多个
$(function() {
	lay('.layDate1').each(function(){
	  laydate.render({
	    elem: this
	    ,trigger: 'click'
	  });
	});
});
/* laydate.render({
	 elem: '#startDate'//指定元素
});
laydate.render({
	 elem: '#endDate'//指定元素
}); */
</script>